package esempio.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import esempio.dao.ClientDAO;

import esempio.domain.Client;


@Service
public class ClientServiceImpl implements ClientService {

	@Autowired
	private ClientDAO clientDao;
	
	@Override
	public void add(Client client) {
		//Persist the user object here.
		clientDao.saveClient(client);
		System.out.println("client added to the database");

	}

}
